package com.slipper.system.api.schedule.bo;

import java.util.Date;
import com.slipper.common.bo.CommonBO;

/**
 * 任务调度日志
 * 
 * @date 2020-03-28 17:10:06
 */
public class ScheduleLogBO extends CommonBO {
    private static final long serialVersionUID = 1L;
    
    public static final String STATUS_RUNNING = "0";
    public static final String STATUS_SUCCESS = "1";
    public static final String STATUS_FAILURE = "2";
    
    /* 主键ID */
    private String id;
    /* 主键ID */
    private String[] ids;
    /* 任务ID */
    private String taskId;
    /* Bean名称 */
    private String beanName;
    /* 方法名 */
    private String methodName;
    /* 参数 */
    private String params;
    /* 状态：
            0、执行中
            1、执行成功
            2、执行失败 */
    private String status;
    /* 开始时间 */
    private Date startTime;
    /* 结束时间 */
    private Date endTime;
    /* 失败信息 */
    private String errorMessage;
    /* 耗时 */
    private Long timeConsume;
    /* 创建时间 */
    private Date createTime;

    public void setId(String id) {
        this.id = id;
    }
    
    public String getId() {
        return id;
    }
    
    public void setIds(String[] ids) {
        this.ids = ids;
    }
    
    public String[] getIds() {
        return ids;
    }
    
    public void setTaskId(String taskId) {
        this.taskId = taskId;
    }
    
    public String getTaskId() {
        return taskId;
    }
    
    public void setBeanName(String beanName) {
        this.beanName = beanName;
    }
    
    public String getBeanName() {
        return beanName;
    }
    
    public void setMethodName(String methodName) {
        this.methodName = methodName;
    }
    
    public String getMethodName() {
        return methodName;
    }
    
    public void setParams(String params) {
        this.params = params;
    }
    
    public String getParams() {
        return params;
    }
    
    public void setStatus(String status) {
        this.status = status;
    }
    
    public String getStatus() {
        return status;
    }
    
    public void setStartTime(Date startTime) {
        this.startTime = startTime;
    }
    
    public Date getStartTime() {
        return startTime;
    }
    
    public void setEndTime(Date endTime) {
        this.endTime = endTime;
    }
    
    public Date getEndTime() {
        return endTime;
    }
    
    public void setErrorMessage(String errorMessage) {
        this.errorMessage = errorMessage;
    }
    
    public String getErrorMessage() {
        return errorMessage;
    }
    
    public void setTimeConsume(Long timeConsume) {
        this.timeConsume = timeConsume;
    }
    
    public Long getTimeConsume() {
        return timeConsume;
    }
    
    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }
    
    public Date getCreateTime() {
        return createTime;
    }
    
}
